﻿using System.IO;
using Viettel.VOFFICE.Web.Models.CustomAttributes;

namespace Viettel.VOFFICE.Web.Models
{
    public class UploadFileModel : BaseModel
    {
        [FileSize(52428800)]
        public Stream FileContent { get; set; }

        [FileTypes(".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.mp3,.wma,.rar,.7z,.png,.jpg,.bmp,.jpeg,.gif,.jpe")]
        public string FileName { get; set; }

        [FilePath]
        public string FilePath { get; set; }

        public UploadFileModel() { }
    }
}